import http from './http'
// https://api-hmugo-web.itheima.net/api/public/v1/home/catitems 导航菜单
export const catitemsApi = () => {
    return http({
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/home/catitems',
        method: 'get'
    })
}
// https://api-hmugo-web.itheima.net/api/public/v1/goods/qsearch商品搜索
export const qsearchApi = (query) => {
    return http({
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/goods/qsearch',
        method: 'get',
        params: {
            query
        }
    })
}
//商品分类
export const categoriesApi = () => {
    return http({
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/categories',
        method: 'get',
    })
}